package cn.lang.producer.dto;


import cn.lang.global.validator.Add;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class UserDto<T> {


    @NotNull(message = "姓名不能为空", groups = Add.class)
    private String name;
    @NotNull(message = "年龄不能为空", groups = Add.class)
    private Integer age;

    private T data;
}
